import request from '@/utils/request'

export function queryByPage(query) {
	return request({
		url: "/plant/queryByPage",
		method: "get",
		params: query
	})
}

export function getList(query) {
	return request({
		url: "/plant/getList",
		method: "get",
		params: query
	})
}

export function insert(data) {
	return request({
		url: "/plant/insert",
		method: 'post',
		data: data
	})
}

export function update(data) {
	return request({
		url: "/plant/update",
		method: "post",
		data: data
	})
}

export function delByIds(ids) {
  return request({
    url: "/plant/delByIds/" + ids,
    method: "post"
  })
}
